package com.yzcrm.erp.kms.common;

import com.jfinal.config.Routes;
import com.yzcrm.erp.kms.controller.*;
import com.yzcrm.erp.kms.controller.mobile.*;

public class KmsRouter extends Routes {
    @Override
    public void config() {
        addInterceptor(new KmsInterceptor());
        add("/KmsFile", KmsFileController.class);
        add("/KmsResource", KmsResourceController.class);
        add("/KmsCourse", KmsCourseController.class);
        add("/KmsComment", KmsCommentController.class);
        add("/KmsBbs", KmsBBSController.class);
        add("/KmsReport", KmsReportController.class);

        add("/Mobile/KmsCourse", KmsMobileCourseController.class);
        add("/Mobile/KmsResource", KmsMobileResourceController.class);
        add("/Mobile/KmsComment", KmsMobileCommentController.class);
        add("/Mobile/KmsBbs", KmsMobileBBSController.class);
        add("/Mobile/KmsSearch", KmsMobileSearchController.class);

    }
}
